//
//  AnimationIndicator.h
//  Yingzhi
//
//  Created by user on 15/9/22.
//  Copyright (c) 2015年 yingzhi. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AnimationIndicator : UIView
{
    UIImageView *imageView;
    UILabel *Infolabel;
    UIControl *control;
}
/*
 //用的时候： [[AnimationIndicator sharedIndicator] startAnimation];
 //不用的时候： [[AnimationIndicator sharedIndicator] stopAnimationWithLoadText:@“” withType:TRUE/FAlSE];
 */
@property (nonatomic, assign) NSString *loadtext;
@property (nonatomic, readonly) BOOL isAnimating;
+(AnimationIndicator *)sharedIndicator;//更改为单列类了
-(void)setLoadText:(NSString *)text;
- (void)startAnimation;
-(void)startAnimationWithLoadText:(NSString *)text;
- (void)stopAnimationWithLoadText:(NSString *)text withType:(BOOL)type;
@end
